/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import entity.MemberCustomer;
import entity.SaleOrder;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author SONY
 */
@Local
public interface SaleOrderServiceLocal {
    
    List<SaleOrder> getAllSaleOrders_byMemberID(int memberid);
    
    SaleOrder addSaleOrder(MemberCustomer MemberID, String Name, String Address, String Phone, Date OrderDate, String Status, BigDecimal Total, String PaymentType);
    
    List<SaleOrder> getAllSaleOrders();
    
    SaleOrder getSaleOrder_Details_bySaleOrderID(int saleorderid);
    
    boolean updateStatus_bySaleOrderID(int saleorderid, String status);
    
    List<SaleOrder> getAllSaleOrders_LikeOID(String oid);   
    
    List<SaleOrder> getAllSaleOrders_byStatus(String status);    
    
}
